Remove the runtime warning about the invisible property, add a warning
authorMatthias Clasen <mclasen@redhat.com>
Mon, 11 Jul 2005 19:58:33 +0000 (19:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 11 Jul 2005 19:58:33 +0000 (19:58 +0000)
2005-07-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktexttag.c (gtk_text_tag_class_init)
(gtk_text_tag_set_property): Remove the runtime warning about
the invisible property, add a warning about possible remaining
problems to the documentation of the property.  (#66194)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktexttag.c

index 5b6bd8ab4ac350efabab1088eaa8128e80f6b70d..e02e245b98d7897591c112157214f93f6c3d935d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-07-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_tag_class_init) 
+       (gtk_text_tag_set_property): Remove the runtime warning about 
+       the invisible property, add a warning about possible remaining
+       problems to the documentation of the property.  (#66194)
+
        * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
        ever go unconditionally to the buffer ends; that doesn't work
        if the initial or final portion of the buffer are invisible.
index 5b6bd8ab4ac350efabab1088eaa8128e80f6b70d..e02e245b98d7897591c112157214f93f6c3d935d 100644 (file)
@@ -1,5 +1,10 @@
 2005-07-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_tag_class_init) 
+       (gtk_text_tag_set_property): Remove the runtime warning about 
+       the invisible property, add a warning about possible remaining
+       problems to the documentation of the property.  (#66194)
+
        * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
        ever go unconditionally to the buffer ends; that doesn't work
        if the initial or final portion of the buffer are invisible.
index 5b6bd8ab4ac350efabab1088eaa8128e80f6b70d..e02e245b98d7897591c112157214f93f6c3d935d 100644 (file)
@@ -1,5 +1,10 @@
 2005-07-11  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtktexttag.c (gtk_text_tag_class_init) 
+       (gtk_text_tag_set_property): Remove the runtime warning about 
+       the invisible property, add a warning about possible remaining
+       problems to the documentation of the property.  (#66194)
+
        * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Don't
        ever go unconditionally to the buffer ends; that doesn't work
        if the initial or final portion of the buffer are invisible.
index ce08e962734e6a5e7c2d63bb2e459520437fe887..e596f7dcf55a45d5800eeba17973796cbe0ece3c 100644 (file)
@@ -498,11 +498,22 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
                                                        PANGO_TYPE_TAB_ARRAY,
                                                        GTK_PARAM_READWRITE));
   
+  /**
+   * GtkTextTag:invisible:
+   *
+   * Whether this text is hidden.
+   *
+   * Note that there may still be problems with the support for invisible 
+   * text, in particular when navigating programmatically inside a buffer
+   * containing invisible segments. 
+   *
+   * Since: 2.8
+   */
   g_object_class_install_property (object_class,
                                    PROP_INVISIBLE,
                                    g_param_spec_boolean ("invisible",
                                                          P_("Invisible"),
-                                                         P_("Whether this text is hidden. Not implemented in GTK 2.0"),
+                                                         P_("Whether this text is hidden."),
                                                          FALSE,
                                                          GTK_PARAM_READWRITE));
 
@@ -1256,7 +1267,6 @@ gtk_text_tag_set_property (GObject      *object,
       break;
 
     case PROP_INVISIBLE:
-      g_warning ("The \"invisible\" property on GtkTextTag is not supported for GTK 2.0, it will be added in a future release. see http://bugzilla.gnome.org bug #66194 for status.");
       text_tag->invisible_set = TRUE;
       text_tag->values->invisible = g_value_get_boolean (value);
       g_object_notify (object, "invisible-set");